package com.headwind.mapper.master;

import com.headwind.entity.HwMood;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author : Headwind
 * @version : 1.0
 * @date : Created in 2020/8/10
 * @description : jpa实体接口
 */
@Mapper
@Component
public interface HwMoodMasterMapper {

    /**
     * 保存用户发表说说
     *
     * @param mood 说说信息
     * @return 成功 - {@code 1} 失败 - {@code 0}
     */
    int saveMood(@Param("mood") HwMood mood);

    /**
     * 删除特定说说
     *
     * @param id 说说ID
     * @return 成功 - {@code 1} 失败 - {@code 0}
     */
    int deleteMood(@Param("id") String id);

    /**
     * 更新某条说说
     *
     * @param mood 说说内容
     * @return 成功 - {@code 1} 失败 - {@code 0}
     */
    int updateMood(@Param("mood") HwMood mood);
}
